<%--
  Created by IntelliJ IDEA.
  User: lt
  Date: 2017/5/9
  Time: 14:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html>
<head>

    <title>产品列表</title>
    <%@ include file="/common/include-core.jsp" %>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 系统管理 <span
        class="c-gray en">&gt;</span> 产品列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
                                              href="javascript:location.replace(location.href);" title="刷新"><i
        class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="text-c">
    <form action="/productEntity/productEntityList.html" method="post" id="searchForm">
        <input type="hidden" id="count" value="${pageInfo.total }"/>
        <input type="hidden" id="page" name="page" value="${pageInfo.pageNum }"/>
        <input type="hidden" id="pageSize" name="pageSize" value="${pageInfo.pageSize }"/>
        <%--<input type="text" name="title"  value="${bean.title }" placeholder=" 请输入你要查询的活动标题" style="width:250px" class="input-text">
        <button name="" class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>--%>
    </form>
</div>
<div class="page-container">
    <div class="cl pd-5 bg-1 bk-gray"><span class="l"> <a class="btn btn-primary radius" href="javascript:;"
                                                          onclick="layer_show('添加产品实体','/productEntity/productEntity.html?productId=${productId}','')"><i
            class="Hui-iconfont">&#xe600;</i> 添加产品实体</a> </span></div>

    <table class="table table-border table-bordered table-hover table-bg">
        <thead>
        <tr>
            <th scope="col" colspan="15">产品列表</th>
        </tr>
        <tr class="text-c">
            <th width="15">序号</th>
            <th width="10">产品实体名称</th>
            <th width="50">产品简介</th>
            <th width="40">产品详情</th>
            <th width="40">价格</th>
            <th width="15">图片</th>
            <th width="15">上线时间</th>
            <th width="15">下线时间</th>
            <th width="15">状态</th>
            <th width="15">创建时间</th>
            <th width="15">操作</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${pageInfo.list}" var="item" varStatus="index">
            <tr class="text-c">
                <td>${index.index+1}</td>
                <td>${item.productEntityName}</td>
                <td>${item.productEntityIntro}</td>
                <td>${item.productEntityIntroduce}</td>
                <td>
                    <fmt:formatNumber value="${item.price/100}" type="currency"/>元
                </td>
                <td><img src="${item.picPath}" width="50px"/></td>
                <td><fmt:formatDate value="${item.onlineDate}" pattern="yyyy-MM-dd HH:mm"/></td>
                <td><fmt:formatDate value="${item.offlineDate}" pattern="yyyy-MM-dd HH:mm"/></td>
                <td class="td-status">
                    <c:if test="${item.status==0}"><span class="label label-defaunt radius">无效</span></c:if>
                    <c:if test="${item.status==1}"><span class="label label-success radius">有效</span></c:if>
                </td>
                <td><fmt:formatDate value="${item.createTime}" pattern="yyyy-MM-dd HH:mm"/></td>
                <td class="f-14">
                    <a title="编辑" href="javascript:;"
                       onclick="layer_show('用户编辑','/productEntity/productEntity.html?tid=${item.tid}&productEntityId=${item.productEntityId}&productId=${productId}','')"
                       style="text-decoration:none">
                        <i class="Hui-iconfont">&#xe6df;</i></a>
                    <a title="停用" href="javascript:" id="stopProductEntity" onclick="stopProductEntity('${item.tid}')"
                       style="text-decoration:none">
                        <i class="Hui-iconfont">&#xe699;</i></a>
                    <a title="启用" href="javascript:" id="operateProductEntity"
                       onclick="operateProductEntity('${item.tid}')" style="text-decoration:none">
                        <i class="Hui-iconfont">&#xe698;</i></a>
                </td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
    <div class="ui-page tr mt10" style="float: right;margin-top: 10px;margin-bottom: 10px"></div>
</div>
<script type="text/javascript" src="/static/js/product/productAdd.js"></script>

</body>
</html>
<%@ include file="/common/include-footer.jsp" %>